package com.smooth.site.sx.pc.offer.enums;

public enum OfferStatus {
	toconfirm(2,"待确认"),
	confirmed(3,"已生效"),
	failed(-1,"已作废"),
	;

	public Integer value;
	public String name;

	OfferStatus(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static OfferStatus getStatus(Integer value) {
		if (value != null) {
			OfferStatus[] otypes = OfferStatus.values();
			for (OfferStatus memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
